import java.util.Scanner;

public class StringSpilt {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数：");
        String user1 = sc.nextLine();
        System.out.println("请输入两个数：");
        String user2 = sc.nextLine();
        //这一行和下一行效果相同
        String[] num1 = user2.split("\s+");
        String[] num2 = user2.split(" +");
        int a = Integer.parseInt(num1[0]);
        int b = Integer.parseInt(num1[1]);
        int c = Integer.parseInt(user1);
        System.out.println(a * c);
        System.out.println(b * c);
    }
}
